<%= form_for(@finance, url: admin_finance_path) do |f| %>
<%= f.hidden_field :finance_type %>


支出性质：
  <%= f.select :finance_property, @finance_property.collect { |k,v| [ v, v] } %>

<br />
支出类型：
  <%= f.select :finance_category, @finance_category.collect { |k,v| [ v, v] }%>

<br />

支出细分：
  <%= f.select :finance_detail, @finance_detail.collect { |k,v| [ v, v] }%>

<br />
金额：<%= f.text_field :amount %>
<br />
备注：<%= f.text_area :remarks %>
<br />

选择分店：<%= select_tag :studio_ids, options_from_collection_for_select(@studios, :id, :name, @finance.studio_ids),  multiple: true%>
<br />
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
<%= link_to '返回', admin_finances_path %>